
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Medicine;
import cn.edu.scau.cmi.hombio.domain.MedicineStorage;
import cn.edu.scau.cmi.hombio.domain.MedicineStorageDetail;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for MedicineStorageDetail entities
 * 
 */
public interface MedicineStorageDetailService {

	/**
	 */
	public MedicineStorageDetail findMedicineStorageDetailByPrimaryKey(Integer id);

	/**
	* Delete an existing MedicineStorageDetail entity
	* 
	 */
	public void deleteMedicineStorageDetail(MedicineStorageDetail medicinestoragedetail);

	/**
	* Delete an existing MedicineStorage entity
	* 
	 */
	public MedicineStorageDetail deleteMedicineStorageDetailMedicineStorage(Integer medicinestoragedetail_id, Integer related_medicinestorage_id);

	/**
	* Save an existing Medicine entity
	* 
	 */
	public MedicineStorageDetail saveMedicineStorageDetailMedicine(Integer id_1, Medicine related_medicine);

	/**
	* Save an existing MedicineStorage entity
	* 
	 */
	public MedicineStorageDetail saveMedicineStorageDetailMedicineStorage(Integer id_2, MedicineStorage related_medicinestorage);

	/**
	* Return a count of all MedicineStorageDetail entity
	* 
	 */
	public Integer countMedicineStorageDetails();

	/**
	* Return all MedicineStorageDetail entity
	* 
	 */
	public List<MedicineStorageDetail> findAllMedicineStorageDetails(Integer startResult, Integer maxRows);

	/**
	* Delete an existing Medicine entity
	* 
	 */
	public MedicineStorageDetail deleteMedicineStorageDetailMedicine(Integer medicinestoragedetail_id_1, Integer related_medicine_id);

	/**
	* Load an existing MedicineStorageDetail entity
	* 
	 */
	public Set<MedicineStorageDetail> loadMedicineStorageDetails();

	/**
	* Save an existing MedicineStorageDetail entity
	* 
	 */
	public void saveMedicineStorageDetail(MedicineStorageDetail medicinestoragedetail_1);
}